{% extends "base.html" %}
{% block style %}
<link rel="stylesheet" href="/site_media/view.css" type="text/css" />
{% endblock %}
{% block title %}View My Jobs{% endblock %}
{% block head %}My Jobs{% endblock %}
{% block content %}
	<div id='listings'>
		<table class="t">
			  <tr>
				  <th scope="col">Title</th>
				  <th scope="col">Company</th>
				  <th scope="col">Pay</th>
				  <th scope="col">Description</th>
				  <th scope="col">Last Modified</th>
				  <th scope="col">Edit</th>
				  <th scope="col">Delete</th>
			  </tr>
			{% for entry in list %}
				<tr>
					<td>{{ entry.title }}</td>
					<td>{{ entry.company }}</td>
					<td>${{ entry.pay }}</td>
					<td>{{ entry.description|truncatewords:50 }}</td>
					<td>{{ entry.last_modified }}</td>
					<td>
							<a href="/user/edit_job/{{ entry.id }}/" >
								Edit
							</a>
					</td>
					<td>
							<a href="/user/delete_job/{{ entry.id }}/" >
								Delete
							</a>
					</td>
				</tr>
			{% endfor %}
		</table>
	</div>
{% endblock %}
